<template>
	<view class="container">
		<view class="img">
			<image src="/static/logo.png" mode=""></image>
			<view class="rank">
				<text>1</text>
			</view>
		</view>
		<view class="info">
			<view class="top">
				<view class="title">
					诗泊雅女家用梳樱花粉蓬松排骨梳高高颅顶排骨梳子大弯发梳子大弯发梳子大弯发梳子大弯发
				</view>
				<view class="tips">
					<text>库存28.6万</text>
					<text>诗泊雅饰品店</text>
				</view>
			</view>
			<view class="money">
				<text>￥9.9</text>
				<text>赚￥4.95</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style lang="less" scoped>
	.container {
		display: flex;
		padding: 30rpx 0;
		border-bottom: 1rpx solid rgba(238, 238, 238, 1);

		.info {
			display: flex;
			flex-direction: column;
			justify-content: space-between;

			.money {
				text {
					font-size: 30rpx;
					font-weight: 700;
					color: rgba(252, 80, 0, 1);

					&:last-child {
						font-size: 26rpx;
						margin-left: 25rpx;
						color: rgba(42, 42, 42, 1);
					}
				}
			}

			.top {
				.tips {
					font-size: 24rpx;
					color: rgba(153, 153, 153, 1);

					text {
						display: inline-block;
						margin-right: 30rpx;
					}
				}

				.title {
					display: -webkit-box;
					-webkit-box-orient: vertical;
					overflow: hidden;
					text-overflow: ellipsis;
					-webkit-line-clamp: 2;
					font-size: 28rpx;
					font-weight: 700;
					color: rgba(42, 42, 42, 1);
					margin-bottom: 10rpx;
				}
			}
		}

		.img {
			width: 200rpx;
			height: 200rpx;
			border-radius: 8rpx;
			position: relative;
			flex-shrink: 0;
			margin-right: 20rpx;

			image {
				width: 100%;
				height: 100%;
			}

			.rank {
				position: absolute;
				left: 0;
				top: 0;
				width: 40rpx;
				height: 40rpx;
				text-align: center;
				line-height: 40rpx;
				border-radius: 8rpx 0rpx 8rpx 0rpx;
				background: rgba(0, 0, 0, 0.4);
				font-size: 24rpx;
				font-weight: 700;

				text {
					color: rgba(255, 255, 255, 1);
				}
			}
		}
	}
</style>